<!DOCTYPE html>
<html class="x-admin-sm" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>订单列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="/css/font.css">
    <link rel="stylesheet" href="/css/xadmin.css">
    <script src="/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/js/xadmin.js"></script>
</head>

<body>
<div class="x-nav">
            <span class="layui-breadcrumb">
                <a href="">首页</a>
                <a href="">演示</a>
                <a>
                    <cite>导航元素</cite></a>
            </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" id="shuaxin" title="刷新">
        <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
    </a>
</div>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body ">
                    <h2>结账退房</h2>
                    <form class="layui-form layui-col-space5" action="/admin-cust-out-get">
                        <center>
                            <div class="layui-input-inline layui-show-xs-block">
                                <input type="text" name="roomID" value="" placeholder="请输入房号查询账单" autocomplete="off" class="layui-input">
                            </div>
                            <div class="layui-input-inline layui-show-xs-block">
                                <button class="layui-btn" lay-submit="" lay-filter="sreach">
                                    <i class="layui-icon">&#xe615;</i></button>
                            </div>
                        </center>
                    </form>
                </div>
                <table class="layui-table layui-form">
                    <thead>
                    <tr>
                        <th>账单编号</th>
                        <th>房间号</th>
                        <th>顾客1</th>
                        <th>顾客2</th>
                        <th>入住时间</th>
                        <th>离开时间</th>
                        <th>押金</th>
                        <th>金额</th>
                        <th>账单状态</th>>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>

                    <tr>
                        <!--/*@thymesVar id="bill" type="com.example.hotel_demo.pojo.Bill"*/-->
                        <td th:text="${bill.billID}"></td>
                        <td th:text="${bill.roomID}"></td>
                        <td th:text="${bill.custNum}"></td>
                        <td th:text="${bill.custNum2}"></td>
                        <td th:text="${bill.checkinDate}"></td>
                        <td th:text="${bill.checkoutDate}"></td>
                        <td th:text="${bill.deposit}"></td>
                        <td th:text="${bill.billMoney}"></td>
                        <td th:if="${bill.billState} eq 0 " th:text="已付房费"></td>
                        <td th:if="${bill.billState} eq 1 " th:text="已付房费和押金"></td>
                        <td th:if="${bill.billState} eq 2 " th:text="全付但未退还押金"></td>
                        <td th:if="${bill.billState} eq 3 " th:text="全付并退还押金"></td>

                        <td class="td-manage">
                            <a title="办理退房"   th:href="@{/admin-cust-out-update(billID=${bill.billID})}">
                                <i class="layui-icon">&#xe63c;</i></a>
                        </td>
                    </tr>

                </table>
            </div>
        </div>
    </div>
</div>

</body>
<script type='text/javascript'>
    var shuaxin = document.getElementById("shuaxin");
    shuaxin.onclick = function (ev) {
        window.location = '/admin-cust-out';
    }
</script>
<script>layui.use(['laydate', 'form'],
    function() {
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });
</script>
</html>